

.current-color-display {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid #e1e6f4;
  background: linear-gradient(135deg, rgba(248, 250, 255, 0.95), #ffffff);
}

.current-color-display.modal-current-color {
  flex-direction: column;
  text-align: center;
  min-height: 140px;
}

.current-color-display.modal-current-color .current-color-swatch {
  width: 100%;
  height: 64px;
}

.current-color-swatch {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: transparent;
  flex-shrink: 0;
}

.current-color-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.current-color-code {
  font-size: 16px;
  font-weight: 600;
  color: #1f232b;
}

.current-color-rgb {
  font-size: 12px;
  color: #5f6368;
  letter-spacing: 0.02em;
}

.current-color-type {
  font-size: 12px;
  color: #8b9097;
}

.palette-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 10px;
  max-height: 360px;
  overflow-y: auto;
  padding-right: 4px;
}

.palette-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid rgba(26, 115, 232, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}

.palette-item:hover {
  transform: translateY(-2px);
  border-color: rgba(26, 115, 232, 0.32);
  box-shadow: 0 4px 12px rgba(26, 115, 232, 0.12);
}

.palette-item.active {
  border-color: #1f6feb;
  box-shadow: 0 8px 18px rgba(31, 111, 235, 0.25);
}

.palette-item__swatch {
  width: 100%;
  height: 50px;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  position: relative;
  overflow: hidden;
}

.fullscreen-swatch {
  display: block;
  width: 100%;
  height: 48px;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  position: relative;
  overflow: hidden;
}

.palette-item__code {
  font-weight: 500;
  color: #3c4043;
  font-size: 13px;
}

.palette-item__rgb {
  font-size: 12px;
  color: #5f6368;
}

.palette-empty {
  grid-column: 1 / -1;
  padding: 24px 12px;
  text-align: center;
  color: #8b9097;
  border: 1px dashed #dfe3ea;
  border-radius: 8px;
}

.palette-window__controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.palette-window__filter {
  flex: 1 1 220px;
}

.palette-window__current {
  flex: 1 1 220px;
}

.palette-window__tabs {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.palette-tabs {
  display: flex;
  gap: 8px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(26, 115, 232, 0.08);
}

.palette-tab {
  flex: 1 1 0;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #5f6368;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 16px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  transition: background 0.2s ease, color 0.2s ease;
}

.palette-tab__count {
  font-size: 12px;
  color: inherit;
  opacity: 0.8;
}

.palette-tab.is-active {
  background: #ffffff;
  color: #1f232b;
  box-shadow: 0 8px 20px rgba(67, 97, 238, 0.15);
}

.palette-tab:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.palette-tab-panels {
  border: 1px solid #e1e6f4;
  border-radius: 16px;
  background: #fff;
  padding: 16px;
}

.palette-tab-panel {
  display: none;
  flex-direction: column;
  gap: 12px;
}

.palette-tab-panel.is-active {
  display: flex;
}

.palette-subtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.palette-subtab {
  border: 1px solid rgba(26, 115, 232, 0.2);
  border-radius: 999px;
  background: transparent;
  padding: 6px 14px;
  font-size: 13px;
  color: #5f6368;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.palette-subtab.is-active {
  background: rgba(26, 115, 232, 0.12);
  color: #1f232b;
  border-color: rgba(26, 115, 232, 0.45);
}

.swatch--pearlescent {
  border-color: rgba(255, 255, 255, 0.75) !important;
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.6);
}

.swatch--pearlescent::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.7), transparent 60%);
  pointer-events: none;
  mix-blend-mode: screen;
}
